package com.kg.module.jtnc.jy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kg.core.base.model.BaseEntity;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 收菜交易管理表
 * </p>
 *
 * @author xxx
 * @since 2024-11-02
 */
@Getter
@Setter
@TableName("kr_jy")
@ApiModel(value = "KrJy对象", description = "收菜交易管理表")
public class KrJy implements BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "jy_id", type = IdType.ASSIGN_UUID)
    private String jyId;

    @ApiModelProperty("种植计划ID")
    @TableField(value = "zzjh_id")
    private String zzjhId;

    @ApiModelProperty("交易单号")
    @TableField("jydh")
    private String jydh;

    @ApiModelProperty("收菜员用户id")
    @TableField("scy_user_id")
    private String scyUserId;

    @ApiModelProperty("收菜员姓名")
    @TableField("scyxm")
    private String scyxm;

    @ApiModelProperty("地块id")
    @TableField("dkgl_id")
    private String dkglId;

    @ApiModelProperty("地块名称")
    @TableField("dkmc")
    private String dkmc;

    @ApiModelProperty("农户id")
    @TableField("nh_id")
    private String nhId;

    @ApiModelProperty("农户姓名")
    @TableField("nhxm")
    private String nhxm;

    @ApiModelProperty("品种")
    @TableField("pz")
    private String pz;

    @ApiModelProperty("单价")
    @TableField("dj")
    private Double dj;

    @ApiModelProperty("第一次称重")
    @TableField("dyccz")
    private Double dyccz;

    @ApiModelProperty("第二次称重")
    @TableField("deccz")
    private Double deccz;

    @ApiModelProperty("第三次称重（去皮）")
    @TableField("dsccz")
    private Double dsccz;

    @ApiModelProperty("实际重量")
    @TableField("sjzl")
    private Double sjzl;

    @ApiModelProperty("交易金额")
    @TableField("jyje")
    private Double jyje;

    @ApiModelProperty("交易状态（0：未确认，1:已确认，2:已拒绝）")
    @TableField("state")
    private String state;

    @ApiModelProperty("交易时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
}
